package cn.getech.data.development.service;


import cn.getech.data.development.dto.JobCronDto;
import cn.getech.data.development.dto.JobNodeConfigDto;
import cn.getech.data.development.entity.BdpModelTask;
import cn.getech.data.development.entity.JobNodeConf;
import cn.getech.data.development.entity.JobNodeTable;
import cn.getech.data.development.model.res.jobInfo.JobDataRes;
import cn.getech.data.development.model.vo.JobDataVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 任务信息配置表 服务类
 * </p>
 *
 * @author zenith
 * @since 2018-08-27
 */
public interface JobNodeConfService extends IService<JobNodeConf> {
	void upsertKVByJobNodeId(List<JobNodeConf> jobNodeConfList);
	JobNodeConfigDto getJobNodeConf(List<JobNodeConf> jobNodeConfs);
	JobNodeConf selectKVByJobNodeIdAndKey(Integer id, String key,Integer jobType);
    void insertJobNodeConfig(JobCronDto jobCronDto);

	void saveOrUpdateModelTask(BdpModelTask bdpModelTask);

	Page<JobDataRes> getJobDataPage(JobDataVo jobDataVo);

	void insertJobNodeTable(JobNodeTable jobNodeTableVO);

	List<Map<String, Object>> getJobDataCreateBy(JobDataVo jobDataVo);
}
